home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9022 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
  4. Subject: Re: Access carry flag from C
  5. Date: 27 Feb 1996 03:27:43 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Feb26202743@qcd.lanl.gov>
  8. References: <Dn1C9z.DGv.0.net@indra.com> <1996Feb1922.17.19.879@koobera.math.uic.edu>
  9.     <31298D20.41C6@bazis.nl> <danpop.824859220@rscernix>
  10.     <312AFACE.41C6@bazis.nl> <TANMOY.96Feb21081640@qcd.lanl.gov>
  11.     <312D8414.167E@bazis.nl> <TANMOY.96Feb23101510@qcd.lanl.gov>
  12.     <313178D5.41C6@bazis.nl>
  13. NNTP-Posting-Host: qcd.lanl.gov
  14. Mime-Version: 1.0
  15. Content-Type: text
  16. In-reply-to: Franz Korntner's message of Mon, 26 Feb 1996 09:09:41 GMT
  17.  
  18. In article <313178D5.41C6@bazis.nl>
  19. Franz Korntner <fkorntne@bazis.nl> writes:
  20. <snip>
  21. FK: As I said, I don't have a copy of the standard at the moment (My 
  22. FK: company is large, and I cant find the only copy). but the following
  23. FK: 
  24. FK: >         The values given below shall be replaced by constant expressions
  25.                                      ^^^^^^^^^^^^^^^^^^^^
  26. This thread is going on for too long ... What do you think the
  27. highlighted text means?
  28.  
  29. FK: >         ... Their implementation-defined values shall be greater
  30. in magnitude 
  31. FK: >         (absolute value) to those shown, with the same sign.
  32. FK: 
  33. FK: does imply that the implementation defined values (the plysical
  34. limit) shall 
  35. FK: be greater than the shown constants. thus INT_MAX is a minimal limit as the
  36.  
  37. It is certainly true that the implementation defined value can be
  38. larger than the shown constant. But in that case the actual value "shall
  39. be replaced by" the appropriate limit. What is so difficult about that?
  40.  
  41. FK: implementation defined maximum can (and according to the above-
  42. will be) larger 
  43.  
  44. Sorry, I misquoted in a hurry: it should read `equal or
  45. greater'. 
  46.  
  47. FK: than the constant. Right ?!?
  48.  
  49. Yes, the implementation defined value will be equal or greater than the
  50. constant shown. So, will INT_MAX. The implementation defined value is
  51. INT_MAX, so INT_MAX (which is greater than or equal to the value shown
  52. in the standard) _always_ defines the implementation limit.
  53.  
  54. Cheers
  55. Tanmoy
  56. --
  57. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  58. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  59. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  60. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  61. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  62. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  63.